package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created by hujinhui on 2017/7/31.
 */
@Component
//@ConfigurationProperties(prefix = "car300")
//@PropertySource("classpath:properties/car300.properties")
@DisconfFile(targetDirPath = "disconf", filename = "car300.properties")
public class Car300Properties {

    //车三百分配给合作伙伴的访问令牌
    private String token;

    private String newToken;


    //获取详细估值分析数据URL
    private String getUsedCarPriceAnalysisUrl;
    //基于VIN码获取车型URL
    private String identifyModelByVinUrl;
    //根据modelId获取车的配置信息
    private String modelParametersUrl;
    //所有市列表URL
    private String allCityUrl;
    //品牌列表URL
    private String carBrandListUrl;
    //车系列表URL
    private String carSeriesListUrl;
    //车型列表URL
    private String carModelListUrl;
    private String isUseCityCode="Y";




    @DisconfFileItem(name = "car300.isUseCityCode", associateField = "isUseCityCode")
    public String getIsUseCityCode() {
        return isUseCityCode;
    }

    public void setIsUseCityCode(String isUseCityCode) {
        this.isUseCityCode = isUseCityCode;
    }

    @DisconfFileItem(name = "car300.newtoken", associateField = "newToken")
    public String getNewToken() {
        return newToken;
    }

    public void setNewToken(String newToken) {
        this.newToken = newToken;
    }

    @DisconfFileItem(name = "car300.token", associateField = "token")
    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @DisconfFileItem(name = "car300.getUsedCarPriceAnalysisUrl", associateField = "getUsedCarPriceAnalysisUrl")
    public String getGetUsedCarPriceAnalysisUrl() {
        return getUsedCarPriceAnalysisUrl;
    }

    public void setGetUsedCarPriceAnalysisUrl(String getUsedCarPriceAnalysisUrl) {
        this.getUsedCarPriceAnalysisUrl = getUsedCarPriceAnalysisUrl;
    }

    @DisconfFileItem(name = "car300.identifyModelByVinUrl", associateField = "identifyModelByVinUrl")
    public String getIdentifyModelByVinUrl() {
        return identifyModelByVinUrl;
    }

    public void setIdentifyModelByVinUrl(String identifyModelByVinUrl) {
        this.identifyModelByVinUrl = identifyModelByVinUrl;
    }

    @DisconfFileItem(name = "car300.allCityUrl", associateField = "allCityUrl")
    public String getAllCityUrl() {
        return allCityUrl;
    }

    public void setAllCityUrl(String allCityUrl) {
        this.allCityUrl = allCityUrl;
    }

    @DisconfFileItem(name = "car300.carBrandListUrl", associateField = "carBrandListUrl")
    public String getCarBrandListUrl() {
        return carBrandListUrl;
    }

    public void setCarBrandListUrl(String carBrandListUrl) {
        this.carBrandListUrl = carBrandListUrl;
    }

    @DisconfFileItem(name = "car300.carSeriesListUrl", associateField = "carSeriesListUrl")
    public String getCarSeriesListUrl() {
        return carSeriesListUrl;
    }

    public void setCarSeriesListUrl(String carSeriesListUrl) {
        this.carSeriesListUrl = carSeriesListUrl;
    }

    @DisconfFileItem(name = "car300.carModelListUrl", associateField = "carModelListUrl")
    public String getCarModelListUrl() {
        return carModelListUrl;
    }

    public void setCarModelListUrl(String carModelListUrl) {
        this.carModelListUrl = carModelListUrl;
    }

    @DisconfFileItem(name = "car300.modelParametersUrl", associateField = "modelParametersUrl")
    public String getModelParametersUrl() {
        return modelParametersUrl;
    }

    public void setModelParametersUrl(String modelParametersUrl) {
        this.modelParametersUrl = modelParametersUrl;
    }
}
















